package com.dfiles.utils.dialog;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;

public class BaseDialog extends Dialog {
	public BaseDialog(Context paramContext) {
		super(paramContext);
		setOwner(paramContext);
	}

	public BaseDialog(Context paramContext, int paramInt) {
		super(paramContext, paramInt);
		setOwner(paramContext);
	}

	public BaseDialog(Context paramContext, boolean paramBoolean, DialogInterface.OnCancelListener paramOnCancelListener) {
		super(paramContext, paramBoolean, paramOnCancelListener);
		setOwner(paramContext);
	}

	private void setOwner(Context paramContext) {
		if ((paramContext instanceof Activity)) {
			Activity localActivity = (Activity) paramContext;
			setOwnerActivity(localActivity);
		}
	}
}
